package com.seckill.repository;

import org.apache.ibatis.annotations.Param;

import com.seckill.entity.SuccessKilled;

/**
 * 
 * 
 * @author Administrator
 *
 */
public interface SuccessKilledRepository {
	/**
	 * 插入交易明细
	 * @param seckillId
	 * @param phone
	 * @return 插入行数
	 */
	int insertSuccessKilled(@Param("seckillId") long seckillId, @Param("phone") long phone);
	
	/**
	 * 根据ID查询交易明细并携带秒杀对象
	 * @param seckillId
	 * @return
	 */
	SuccessKilled queryByIdwithSeckill(@Param("seckillId") long seckillId, @Param("phone") long phone);
	
}
